window.onload=function(){
	$(".customers").css("backgroundColor","#50855B").siblings().css("backgroundColor","#101113");
	//查询设备类型下拉框
	$(".deviceModelBox").click(function(event){
		event.stopPropagation();
		$(".deviceModelDropBox").show();
		$(".deviceModelDropBox a").unbind('click').click(function(){
			$(".deviceModelBox").html($(this).html());
			$(".deviceModelDropBox").hide();
		});
		$("body").unbind('click').click(function(){
			$(".deviceModelDropBox").hide();
		});
	});
	//查询
	$(".queryBoxBtn").click(function(){
		var writeContent = $(".writeQueryBox").val();
		var deviceType = $(".deviceModelBox").html();
		if(writeContent=="%"){
			hint("非法输入，请正确输入编号！");
		}else{
			window.location.href='/admin/user/customers?condition='+writeContent+"&device_type="+deviceType;
		}
	});
}